<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Client extends MY_Controller {

    public function __construct()
    {
        parent::__construct();
        $this->load->library('nusoap');
        $this->disable_view();
    }

    /**
     * Default function
     */
    public function index()
    {
        $id = $this->uri->segment(4);
        $this->soap_client = new nusoap_client('http://www.boogiewoogie.com.vn/index.php/index/webservice/ws_getuserbyid?wsdl','wsdl');
        if($this->soap_client->fault){
            echo 1;
        }else{
            if($this->soap_client->getError())
            {
                echo 2;
            }
            else{
            $params = array();
            $row = $this->soap_client->call(
            'getUserById',$params
            );
            var_dump($row);
            }
        }
        
        
    }

    
}